package com.company.cloud.club.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.cloud.club.modules.db.dao.ClubActivityRelativeMapper;
import com.company.cloud.club.modules.db.domain.ClubActivityRelative;
import com.company.cloud.club.modules.service.ClubActivityRelativeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * *****************************************************************************
 * <p>
 * 功能名           ：com.company.cloud.club.modules.service.impl
 * 系统名           ：
 * <p>
 * *****************************************************************************
 * Modification History
 * <p>
 * Date        Name                    Reason for Change
 * ----------  ----------------------  -----------------------------------------
 * 2020/7/18     zhangxu                 Created
 */
@Service
public class ClubActivityRelativeServiceImpl extends ServiceImpl<ClubActivityRelativeMapper, ClubActivityRelative> implements ClubActivityRelativeService {

    @Override
    public void removeByActivityId(String id) {
        baseMapper.removeByActivityId(id);
    }

    @Override
    public List<ClubActivityRelative> selectByActivityId(String id) {
        return baseMapper.selectByActivityId(id);
    }

    @Override
    public ClubActivityRelative selectLastActivity(String id) {
        return baseMapper.selectLastActivity(id);
    }

    @Override
    public List<ClubActivityRelative> selectByClubId(String clubId) {
        return baseMapper.selectByClubId(clubId);
    }


}